home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / Snippets / Toolbox / kcapApp 1.2 / kcapApp README next >
Encoding:
Text File  |  1992-07-15  |  769 b   |  28 lines  |  [TEXT/ttxt]

  1. kcapApp 
  2.  
  3. demonstration keyboard drawing from KCAP resource
  4. MPW C 3.2
  5.  
  6. Greg Robbins
  7.  
  8.  
  9. The DrawKeyCaps function draws the key caps, given a set of
  10.    modifiers (in the high byte of the modifier short parameter) and
  11.    KCHR and KCAP resource IDs, using the current pen in
  12.    the current GrafPort. If keyCodesFlag is true, the virtual keycodes
  13.    for the KCAP are drawn (in 9 point) instead of the labels.
  14.  
  15. version 1.0
  16. 12/91
  17.  
  18. version 1.1
  19. 2/92: uses RGetResource rather than GetResource for KCAP
  20.           (KCAP on the Portable and PB100 is in ROM); gets KCHR
  21.           number from script manager
  22.  
  23. version 1.2
  24. 2/92: adds menu of KCAPs available, draws keycodes instead according
  25.           to a flag to DrawKeyCaps
  26.      
  27. see KCAP resource type definition on p. 14-101 of IM VI
  28.